import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class test {
    public static void main(String[] args) {
        String content = "{\"data\":[{\"orderdetailid\":\"c8eab0f95a8711eca13e005056c00001\"," +
                "\"orderid\":\"c8eab0f85a8711ecab26005056c00001\",\"sender\":\"漆雕驻\"," +
                "\"sendplace\":\"广西南宁市马山县\",\"recipient\":\"荆拜四\"," +
                "\"receiveplace\":\"浙江省温州市永嘉县\",\"methodofpayment\":\"支付宝付款\"," +
                "\"paytime\":\"2021-12-11 21:39:37\",\"freight\":\"19.0\",\"total\":\"29.0\"}]," +
                "\"database\":\"bookorder\",\"es\":1639229977000,\"id\":2352,\"isDdl\":false,\"mysqlType\":{\"orderdetailid\":\"varchar(50)\",\"orderid\":\"varchar(50)\",\"sender\":\"varchar(10)\",\"sendplace\":\"varchar(50)\",\"recipient\":\"varchar(10)\",\"receiveplace\":\"varchar(50)\",\"methodofpayment\":\"varchar(50)\",\"paytime\":\"varchar(50)\",\"freight\":\"float\",\"total\":\"float\"},\"old\":null,\"pkNames\":null,\"sql\":\"\",\"sqlType\":{\"orderdetailid\":12,\"orderid\":12,\"sender\":12,\"sendplace\":12,\"recipient\":12,\"receiveplace\":12,\"methodofpayment\":12,\"paytime\":12,\"freight\":7,\"total\":7},\"table\":\"orderdetail\",\"ts\":1639256350097,\"type\":\"INSERT\"}";

        //String regStr = "orderdetailid...\\w*";//16
        //String regStr = "orderid...\\w*";//10
        //String regStr = "sender...[\\u4e00-\\u9fa5]*";//9
        //String regStr = "sendplace...[\\u4e00-\\u9fa5]*";//12
        //String regStr = "recipient...[\\u4e00-\\u9fa5]*";//12
        //String regStr = "receiveplace...[\\u4e00-\\u9fa5]*";//15
        //String regStr = "methodofpayment...[\\u4e00-\\u9fa5]*";//18
        //String regStr = "paytime...\\d{4}-\\d{2}-\\d{2}.\\d{2}:\\d{2}:\\d{2}";//10
        //String regStr = "freight...\\d*\\.\\d*";//10
        String regStr = "total...\\d*\\.\\d*";//8

        Pattern p = Pattern.compile(regStr);
        Matcher m = p.matcher(content);
        if(m.find()){
            String temp = m.group(0);
            int l = temp.length();
            System.out.println(temp.substring(8,l));
        }else{
            System.out.println("no");
        }
    }
}
